package com.story.api.moduler.song.dao;

import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @author yangbo
 * @date 2019-08-05 19:55
 */
public interface ChannelDao {

    /**
     * 列表
     * @param condition
     * @return
     */
    List<Map<String,Object>> getChannelList(@Param("condition") String condition);

    /**
     * 查看标题是否已存在
     * @param title
     * @return
     */
    int countByTitle(@Param("title") String title);

    /**
     * 查询
     * @param channelIdList
     */
    void batchDeleteById(@Param("channelIdList") List<Integer> channelIdList);
}
